home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Celestin Apprentice 7
/
Apprentice-Release7.iso
/
Environments
/
MacMETH 3.2.4
/
MacMETH Docu
/
InsertRes.DOC
< prev
next >
Wrap
Text File
|
1996-06-20
|
2KB
|
52 lines
Utility "InsertRes"
Purpose
The tool InsertRes can copy the resources from a resource
file into the object file, recently compiled.
Remark
Since the dynamic linking loader of MacMETH always opens the
resource fork of the loaded program module, this utility
makes it possible to access resources according to the
default strategy also in object files, regardless wether
these are linked into an application or not. This is of
particular interest for developers programing modules which
access sound or picture resources and which can program this
access always using the default strategy. The latter means
that no resource file is specified while attempting to access
the resource, which is then searched by the resource manager
in the currently open resource fork, the resource fork of the
current running application, or finally the system file's
resource fork.
Method
Once the compiler has been called the file err.DAT contains
the names of the compiled modules. InsertRes retrieves the
name of a program module, i.e. "moduleName", from this file
(if several have been compiled, the first compiled is
retrieved). Then a file "moduleName.R" is searched, and its
entire resource fork is copied into the file
"moduleName.OBM". Error messages are displayed if any of
these conditions is violated, i.e. either of the two files
could not be accessed or the copying process failed for any
other reasons (in use, disk full etc.). The utility also
displays a message if the operation was successful.
Typical usage
Call compiler and compile the program module. Execute this utility
immediately afterwards.
IMPORTANT NOTE: Both files, i.e. "moduleName.R" as well as
"moduleName.OBM" must reside in the same folder, otherwise
the utility's operation fails.
This utility forms part of the MacMETH fast Modula-2 language
system (available via anonymous ftp from Internet host
"ftp.ito.umnw.ethz.ch" (current internet address 129.132.80.130).
For further information you may also wish to consult
'http://www.ito.umnw.ethz.ch/sysecol'.
af 18/Sep/95